<?php
/* @var $this ProposalController */
/* @var $model Proposal */
?>

<style type="text/css">

	table 
		{
		width:100%;
		}
	th
		{
		height:50px;
		}     
	 td
		{
		text-align: <?php if(Yii::app()->language == 'ar')  echo "right"; else echo "left"; ?>;
		}
	
</style>    

<style type="text/css">
	.labels {
	   color: red;
	   background-color: white;
	   font-family: "Lucida Grande", "Arial", sans-serif;
	   font-size: 10px;
	   font-weight: bold;
	   text-align: center;
	   width: 40px;     
	   border: 2px solid black;
	   white-space: nowrap;
	}
	</style>
<?php
$this->breadcrumbs=array(
	Yii::t('proposal_messages','proposal.manage')=>array('admin'),
	Yii::t('proposal_messages','proposal.view'),
);

?>

<h1><?php echo Yii::t('proposal_messages','proposal.view'); ?></h1>

<br/><br/>
<table>
	<tr><td style="width:20%">
	<b><?php echo CHtml::encode($model->getAttributeLabel('name')); ?>:</b>
	</td><td>
	<?php echo CHtml::encode($model->name); ?>
	<br />
	</td></tr>
	
	<tr><td style="width:20%">
	<b><?php echo Yii::t('proposal_messages','proposal.other.description'); ?>:</b>
	</td><td>
	<?php echo CHtml::encode($model->description); ?>
	<br />
	</td></tr>
	
	<tr><td style="width:20%">
	<b><?php echo CHtml::encode($model->getAttributeLabel('proposalType')); ?>:</b>
	</td><td>
	<?php echo CHtml::encode($model->getTypeString()); ?>
	<br />
	</td></tr>
	<?php if($model->proposalType == 4){?>
	<tr><td style="width:20%">
	<b><?php echo CHtml::encode($model->getAttributeLabel('url')); ?>:</b>
	</td><td>
	<?php echo CHtml::encode($model->url); ?>
	<br />
	</td></tr>
	<?php } ?>
	
	<?php if($model->proposalType == 2){?>
	<tr><td style="width:20%">
	<b><?php echo CHtml::encode($model->getAttributeLabel('stateid')); ?>:</b>
	</td><td>
	<?php echo CHtml::encode($model->stateString); ?>
	<br />
	</td></tr>
	<?php } ?>
	
	<tr><td style="width:20%">
	<b><?php echo CHtml::encode($model->getAttributeLabel('email')); ?>:</b>
	</td><td>
	<?php echo CHtml::encode($model->email); ?>
	<br />
	</td></tr>
	
	<tr><td style="width:20%">
	<b><?php echo CHtml::encode($model->getAttributeLabel('createddate')); ?>:</b>
	</td><td>
	<?php echo CHtml::encode($model->createddate); ?>
	<br />
	</td></tr>
	
	<?php if($model->userid != null && $model->userid != ''){?>
	<tr><td colspan="2">
	<table style="width:50%;font-size: 10px"><tr><td  style="width:30%">
	<b><?php echo CHtml::encode($model->getAttributeLabel('userid')); ?>:</b>
	</td><td>
	<a href="#"><?php echo CHtml::encode($model->user->username); ?></a>
	</td></tr></table>
	</td><td>
	<br />
	</td></tr>
	<?php } ?>
	
	
	</table>
